//
//  ITContextualMenuMgr.m
//  CocoaTechTerminal
//
//  Created by Steve Gehrman on Sat Aug 23 2003.
//  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
//

#import "ITContextualMenuMgr.h"

@implementation ITContextualMenuMgr

+ (ITContextualMenuMgr*)sharedInstance;
{
    static ITContextualMenuMgr* shared=nil;
    
    if (!shared)
        shared = [[ITContextualMenuMgr alloc] init];
    
    return shared;
}

- (void)setTerminalContextualMenu:(NSMenu*)menu;
{
    [_terminalContextualMenu autorelease];
    _terminalContextualMenu = [menu retain];
}

- (NSMenu*)terminalContextualMenu;
{
    if (_terminalContextualMenu)
        return [[_terminalContextualMenu copy] autorelease];
    
    return nil;
}

@end
